package com.xcw.test;

/**
 * @Author bhx
 * @Date 2022/8/13 4:11
 * @Description TODO
 */

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Objects;

/**
 * 1
 */
@Data
@Accessors(chain = true)
public class BaseExcel {
    private String name;
    private String age;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BaseExcel baseExcel = (BaseExcel) o;
        return age.equals(baseExcel.age);
    }

    @Override
    public int hashCode() {
        return Objects.hash(age);
    }
}
